home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / dev / amos / AMCAFExa.lha / AMCAF_Examples / Ham.AMOS < prev    next >
AMOS Basic Source Code Archive  |  1996-01-17  |  5.2 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was processed as: AMOS Basic Source Code Archive (archive/amosSrc).

You can browse this item here: Ham.AMOS

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert AMOS Basic Source Code Archive (archive/amosSrc) magic Supported
100% file AMOS Basic source code, untested default
99% file data default
50% TrID AMOS source (v1.34 Alt) default
49% TrID AMOS source (generic) default
100% gt2 Kopftext: 'AMOS Basic v134 ' default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 41 4d 4f 53 20 42 61 73 | 69 63 20 76 31 33 34 20 |AMOS Bas|ic v134 |
|00000010| 00 00 14 c8 1f 01 06 52 | 00 36 20 2a 2a 2a 2a 2a |.......R|.6 *****|
|00000020| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000030| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000040| 20 43 6f 6d 6d 61 6e 64 | 73 20 75 73 65 64 3a 20 | Command|s used: |
|00000050| 00 00 27 01 06 52 00 46 | 20 2a 20 20 20 20 20 20 |..'..R.F| * |
|00000060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 20 48 | | * H|
|00000080| 61 6d 20 46 61 64 65 20 | 20 20 20 20 20 20 20 20 |am Fade | |
|00000090| 20 20 3d 47 6c 75 65 20 | 43 6f 6c 6f 75 72 00 00 | =Glue |Colour..|
|000000a0| 27 01 06 52 00 46 20 2a | 20 20 20 20 20 20 20 20 |'..R.F *| |
|000000b0| 20 20 20 41 6d 63 61 66 | 20 45 78 61 6d 70 6c 65 | Amcaf| Example|
|000000c0| 73 20 20 20 20 20 20 20 | 20 20 20 2a 20 3d 48 61 |s | * =Ha|
|000000d0| 6d 20 43 6f 6c 6f 75 72 | 20 20 20 20 20 20 20 20 |m Colour| |
|000000e0| 54 75 72 62 6f 20 50 6f | 69 6e 74 20 00 00 26 01 |Turbo Po|int ..&.|
|000000f0| 06 52 00 44 20 2a 20 20 | 20 20 20 20 20 20 20 48 |.R.D * | H|
|00000100| 61 6d 20 43 6f 6d 6d 61 | 6e 64 73 20 56 31 2e 30 |am Comma|nds V1.0|
|00000110| 20 20 20 20 20 20 20 20 | 20 2a 20 3d 48 61 6d 20 | | * =Ham |
|00000120| 42 65 73 74 20 20 20 20 | 20 20 20 20 20 20 54 75 |Best | Tu|
|00000130| 72 62 6f 20 50 6c 6f 74 | 00 00 27 01 06 52 00 46 |rbo Plot|..'..R.F|
|00000140| 20 2a 20 20 20 20 20 20 | 57 72 69 74 74 65 6e 20 | * |Written |
|00000150| 62 79 20 43 68 72 69 73 | 20 48 6f 64 67 65 73 20 |by Chris| Hodges |
|00000160| 20 20 20 20 20 2a 20 3d | 52 65 64 20 56 61 6c 20 | * =|Red Val |
|00000170| 20 20 20 20 20 20 20 20 | 20 20 3d 4d 69 78 20 43 | | =Mix C|
|00000180| 6f 6c 6f 75 72 20 00 00 | 1d 01 06 52 00 32 20 2a |olour ..|...R.2 *|
|00000190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001b0| 20 20 20 2a 20 3d 47 72 | 65 65 6e 20 56 61 6c 20 | * =Gr|een Val |
|000001c0| 00 00 1c 01 06 52 00 30 | 20 2a 2a 2a 2a 2a 2a 2a |.....R.0| *******|
|000001d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 20 3d |********|****** =|
|000001f0| 42 6c 75 65 20 56 61 6c | 00 00 04 01 06 52 00 00 |Blue Val|.....R..|
|00000200| 00 00 11 01 06 52 00 1a | 20 4c 65 74 27 73 20 6c |.....R..| Let's l|
|00000210| 6f 61 64 20 61 20 68 61 | 6d 2d 70 69 63 74 75 72 |oad a ha|m-pictur|
|00000220| 65 2e 00 00 12 01 17 d4 | 00 26 00 11 44 61 74 61 |e.......|.&..Data|
|00000230| 2f 41 4d 43 41 46 48 61 | 6d 2e 69 66 66 00 00 5c |/AMCAFHa|m.iff..\|
|00000240| 00 3e 00 00 00 00 00 00 | 13 01 06 52 00 1e 20 53 |.>......|...R.. S|
|00000250| 6f 2e 2e 2e 20 49 20 77 | 61 6e 74 20 74 6f 20 72 |o... I w|ant to r|
|00000260| 65 63 6f 6c 6f 75 72 20 | 69 74 2e 20 00 00 26 01 |ecolour |it. ..&.|
|00000270| 06 52 00 44 20 54 6f 20 | 6b 65 65 70 20 74 68 65 |.R.D To |keep the|
|00000280| 20 70 72 6f 67 72 61 6d | 20 63 6f 6d 70 61 74 69 | program| compati|
|00000290| 62 6c 65 20 77 69 74 68 | 20 6f 74 68 65 72 20 73 |ble with| other s|
|000002a0| 63 72 65 65 6e 20 73 69 | 7a 65 73 2c 20 49 20 63 |creen si|zes, I c|
|000002b0| 6f 70 79 20 74 68 65 20 | 00 00 19 01 06 52 00 2a |opy the |.....R.*|
|000002c0| 20 64 69 6d 65 6e 73 69 | 6f 6e 73 20 69 6e 74 6f | dimensi|ons into|
|000002d0| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 73 20 57 | the var|iables W|
|000002e0| 58 20 61 6e 64 20 57 59 | 2e 20 00 00 08 01 00 06 |X and WY|. ......|
|000002f0| 00 00 02 00 77 78 ff a2 | 0b 58 00 00 08 01 00 06 |....wx..|.X......|
|00000300| 00 00 02 00 77 79 ff a2 | 0b 74 00 00 1f 01 06 52 |....wy..|.t.....R|
|00000310| 00 36 20 57 65 20 6e 65 | 65 64 20 74 77 6f 20 6c |.6 We ne|ed two l|
|00000320| 6f 6f 70 73 20 74 6f 20 | 72 65 61 64 6f 75 74 20 |oops to |readout |
|00000330| 65 76 65 72 79 20 64 6f | 74 20 6f 6e 20 74 68 65 |every do|t on the|
|00000340| 20 73 63 72 65 65 6e 2e | 00 00 29 01 06 52 00 4a | screen.|..)..R.J|
|00000350| 20 42 65 63 61 75 73 65 | 20 49 20 74 68 69 6e 6b | Because| I think|
|00000360| 20 79 6f 75 20 61 72 65 | 20 71 75 69 74 65 20 69 | you are| quite i|
|00000370| 6d 70 61 74 69 65 6e 74 | 2c 20 49 20 6f 6e 6c 79 |mpatient|, I only|
|00000380| 20 63 68 61 6e 67 65 20 | 74 68 65 20 75 70 70 65 | change |the uppe|
|00000390| 72 20 71 75 61 74 65 72 | 2e 20 00 00 19 01 02 3c |r quater|. .....<|
|000003a0| 00 00 00 06 00 00 02 00 | 79 00 ff a2 00 3e 00 00 |........|y....>..|
|000003b0| 00 00 00 94 00 06 00 00 | 02 00 77 79 ff ec 00 3e |........|..wy...>|
|000003c0| 00 00 00 04 ff ca 00 3e | 00 00 00 01 00 00 27 03 |.......>|......'.|
|000003d0| 06 52 00 46 20 41 73 20 | 74 68 69 73 20 69 73 20 |.R.F As |this is |
|000003e0| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |the begi|nning of|
|000003f0| 20 61 20 6e 65 77 20 68 | 6f 72 69 7a 6f 6e 74 61 | a new h|orizonta|
|00000400| 6c 20 6c 69 6e 65 2c 20 | 49 20 6d 75 73 74 20 72 |l line, |I must r|
|00000410| 65 73 65 74 20 73 6f 6d | 65 20 00 00 2a 03 06 52 |eset som|e ..*..R|
|00000420| 00 4c 20 76 61 72 69 61 | 62 6c 65 73 2e 20 48 41 |.L varia|bles. HA|
|00000430| 4d 31 20 68 6f 6c 64 73 | 20 74 68 65 20 63 6f 6d |M1 holds| the com|
|00000440| 70 6f 73 69 74 65 20 63 | 6f 6c 6f 75 72 20 69 6e |posite c|olour in|
|00000450| 66 6f 72 6d 61 74 69 6f | 6e 20 6f 66 20 74 68 65 |formatio|n of the|
|00000460| 20 6f 6c 64 20 6f 72 69 | 67 69 6e 61 6c 20 00 00 | old ori|ginal ..|
|00000470| 15 03 06 52 00 22 20 73 | 63 72 65 65 6e 20 64 61 |...R." s|creen da|
|00000480| 74 61 73 20 69 6e 20 74 | 68 65 20 66 6f 72 6d 61 |tas in t|he forma|
|00000490| 74 20 24 52 47 42 2e 20 | 00 00 18 03 06 52 00 28 |t $RGB. |.....R.(|
|000004a0| 20 41 6e 64 20 73 6f 20 | 48 41 4d 31 20 6d 75 73 | And so |HAM1 mus|
|000004b0| 74 20 62 65 20 73 65 74 | 20 74 6f 20 43 6f 6c 6f |t be set| to Colo|
|000004c0| 75 72 28 30 29 2e 20 20 | 00 00 1a 03 00 06 00 00 |ur(0). |........|
|000004d0| 04 00 68 61 6d 31 ff a2 | 0d 1c 00 74 00 3e 00 00 |..ham1..|...t.>..|
|000004e0| 00 00 00 7c 00 54 00 06 | 00 00 04 00 68 61 6d 32 |...|.T..|....ham2|
|000004f0| ff a2 00 06 00 00 04 00 | 68 61 6d 31 00 00 15 03 |........|ham1....|
|00000500| 02 3c 00 00 00 06 00 00 | 02 00 78 00 ff a2 00 3e |.<......|..x....>|
|00000510| 00 00 00 00 00 94 00 06 | 00 00 02 00 77 78 ff ca |........|....wx..|
|00000520| 00 3e 00 00 00 01 00 00 | 21 05 06 52 00 3a 20 54 |.>......|!..R.: T|
|00000530| 68 65 20 6e 65 78 74 20 | 69 6e 73 74 72 75 63 74 |he next |instruct|
|00000540| 69 6f 6e 20 72 65 61 64 | 73 20 74 68 65 20 70 69 |ion read|s the pi|
|00000550| 78 65 6c 20 66 72 6f 6d | 20 74 68 65 20 63 6f 6f |xel from| the coo|
|00000560| 72 64 73 20 78 2c 79 2e | 00 00 15 05 00 06 00 00 |rds x,y.|........|
|00000570| 02 00 70 00 ff a2 00 4e | 08 00 03 9e 00 74 00 06 |..p....N|.....t..|
|00000580| 00 00 02 00 78 00 00 5c | 00 06 00 00 02 00 79 00 |....x..\|......y.|
|00000590| 00 7c 00 00 26 05 06 52 | 00 44 20 4e 6f 77 20 6c |.|..&..R|.D Now l|
|000005a0| 65 74 27 73 20 63 61 6c | 63 75 6c 61 74 65 20 74 |et's cal|culate t|
|000005b0| 68 65 20 65 66 66 65 63 | 74 20 6f 66 20 74 68 69 |he effec|t of thi|
|000005c0| 73 20 70 69 78 65 6c 2e | 20 54 68 65 72 65 66 6f |s pixel.| Therefo|
|000005d0| 72 65 20 49 20 6d 75 73 | 74 20 67 69 76 65 00 00 |re I mus|t give..|
|000005e0| 19 05 06 52 00 2a 20 74 | 68 65 20 63 6f 6d 70 6f |...R.* t|he compo|
|000005f0| 73 69 74 65 20 63 6f 6c | 6f 75 72 20 6f 66 20 74 |site col|our of t|
|00000600| 68 65 20 70 69 78 65 6c | 20 62 65 66 6f 72 65 2e |he pixel| before.|
|00000610| 00 00 17 05 00 06 00 00 | 04 00 68 61 6d 31 ff a2 |........|..ham1..|
|00000620| 00 4e 08 00 09 e8 00 74 | 00 06 00 00 02 00 70 00 |.N.....t|......p.|
|00000630| 00 5c 00 06 00 00 04 00 | 68 61 6d 31 00 7c 00 00 |.\......|ham1.|..|
|00000640| 1b 05 06 52 00 2e 20 53 | 70 6c 69 74 20 74 68 65 |...R.. S|plit the|
|00000650| 20 6e 65 77 20 76 61 6c | 75 65 20 69 6e 74 6f 20 | new val|ue into |
|00000660| 74 68 65 20 74 68 72 65 | 65 20 63 6f 6d 70 6f 6e |the thre|e compon|
|00000670| 65 6e 74 73 00 00 12 05 | 00 06 00 00 04 00 72 65 |ents....|......re|
|00000680| 64 00 ff a2 00 4e 08 00 | 03 b2 00 74 00 06 00 00 |d....N..|...t....|
|00000690| 04 00 68 61 6d 31 00 7c | 00 00 13 05 00 06 00 00 |..ham1.||........|
|000006a0| 06 00 67 72 65 65 6e 00 | ff a2 00 4e 08 00 03 c0 |..green.|...N....|
|000006b0| 00 74 00 06 00 00 04 00 | 68 61 6d 31 00 7c 00 00 |.t......|ham1.|..|
|000006c0| 12 05 00 06 00 00 04 00 | 62 6c 75 65 ff a2 00 4e |........|blue...N|
|000006d0| 08 00 03 d0 00 74 00 06 | 00 00 04 00 68 61 6d 31 |.....t..|....ham1|
|000006e0| 00 7c 00 00 13 05 06 52 | 00 1e 20 4e 6f 77 20 6c |.|.....R|.. Now l|
|000006f0| 65 74 27 73 20 6d 6f 64 | 69 66 79 20 73 6f 6d 65 |et's mod|ify some|
|00000700| 20 76 61 6c 75 65 73 3a | 00 00 20 05 06 52 00 38 | values:|.. ..R.8|
|00000710| 20 41 64 64 20 34 20 74 | 6f 20 74 68 65 20 52 45 | Add 4 t|o the RE|
|00000720| 44 20 76 61 6c 75 65 2c | 20 62 75 74 20 6b 65 65 |D value,| but kee|
|00000730| 70 20 74 72 61 63 6b 20 | 6f 66 20 74 68 65 20 6d |p track |of the m|
|00000740| 61 78 69 6d 75 6d 2e 20 | 00 00 18 05 00 06 00 00 |aximum. |........|
|00000750| 04 00 72 65 64 00 ff a2 | 06 ea 00 74 00 06 00 00 |..red...|...t....|
|00000760| 04 00 72 65 64 00 ff c0 | 00 3e 00 00 00 04 00 5c |..red...|.>.....\|
|00000770| 00 3e 00 00 00 0f 00 7c | 00 00 11 05 06 52 00 1a |.>.....||.....R..|
|00000780| 20 49 6e 76 65 72 74 20 | 61 6c 6c 20 47 52 45 45 | Invert |all GREE|
|00000790| 4e 20 73 68 61 70 65 73 | 2e 20 00 00 13 05 00 06 |N shapes|. ......|
|000007a0| 00 00 06 00 67 72 65 65 | 6e 00 ff a2 00 3e 00 00 |....gree|n....>..|
|000007b0| 00 0f ff ca 00 06 00 00 | 06 00 67 72 65 65 6e 00 |........|..green.|
|000007c0| 00 00 18 05 06 52 00 28 | 20 41 6e 64 20 61 74 20 |.....R.(| And at |
|000007d0| 6c 61 73 74 20 73 75 62 | 20 32 20 66 72 6f 6d 20 |last sub| 2 from |
|000007e0| 74 68 65 20 42 4c 55 45 | 20 76 61 6c 75 65 2e 20 |the BLUE| value. |
|000007f0| 00 00 18 05 00 06 00 00 | 04 00 62 6c 75 65 ff a2 |........|..blue..|
|00000800| 06 f6 00 74 00 06 00 00 | 04 00 62 6c 75 65 ff ca |...t....|..blue..|
|00000810| 00 3e 00 00 00 02 00 5c | 00 3e 00 00 00 00 00 7c |.>.....\|.>.....||
|00000820| 00 00 14 05 06 52 00 20 | 20 42 75 69 6c 64 20 74 |.....R. | Build t|
|00000830| 68 65 20 6e 65 77 20 63 | 6f 6d 70 6f 73 69 74 65 |he new c|omposite|
|00000840| 20 63 6f 6c 6f 75 72 20 | 00 00 1f 05 00 06 00 00 | colour |........|
|00000850| 04 00 6e 65 77 00 ff a2 | 00 4e 08 00 0a 0e 00 74 |..new...|.N.....t|
|00000860| 00 06 00 00 04 00 72 65 | 64 00 00 5c 00 06 00 00 |......re|d..\....|
|00000870| 06 00 67 72 65 65 6e 00 | 00 5c 00 06 00 00 04 00 |..green.|.\......|
|00000880| 62 6c 75 65 00 7c 00 00 | 22 05 06 52 00 3c 20 4e |blue.|..|"..R.< N|
|00000890| 6f 77 20 49 20 6d 75 73 | 74 20 73 65 61 72 63 68 |ow I mus|t search|
|000008a0| 20 74 68 65 20 62 65 73 | 74 20 63 6f 6c 6f 75 72 | the bes|t colour|
|000008b0| 20 66 6f 72 20 63 68 61 | 6e 67 69 6e 67 20 74 68 | for cha|nging th|
|000008c0| 65 20 70 69 63 74 75 72 | 65 2e 00 00 21 05 06 52 |e pictur|e...!..R|
|000008d0| 00 3a 20 54 6f 20 64 6f | 20 74 68 69 73 2c 20 49 |.: To do| this, I|
|000008e0| 20 63 61 6c 6c 20 3d 48 | 61 6d 20 42 65 73 74 20 | call =H|am Best |
|000008f0| 77 69 74 68 20 74 68 65 | 20 6f 6c 64 20 63 6f 6c |with the| old col|
|00000900| 6f 75 72 2c 20 61 6e 64 | 20 74 68 65 00 00 15 05 |our, and| the....|
|00000910| 06 52 00 22 20 63 6f 6c | 6f 75 72 2c 20 49 20 77 |.R." col|our, I w|
|00000920| 61 6e 74 20 74 6f 20 68 | 61 76 65 20 61 73 20 72 |ant to h|ave as r|
|00000930| 65 73 75 6c 74 2e 00 00 | 17 05 00 06 00 00 02 00 |esult...|........|
|00000940| 70 00 ff a2 00 4e 08 00 | 09 fc 00 74 00 06 00 00 |p....N..|...t....|
|00000950| 04 00 6e 65 77 00 00 5c | 00 06 00 00 04 00 68 61 |..new..\|......ha|
|00000960| 6d 32 00 7c 00 00 0d 05 | 06 52 00 12 20 52 65 77 |m2.|....|.R.. Rew|
|00000970| 72 69 74 65 20 74 68 65 | 20 70 69 78 65 6c 00 00 |rite the| pixel..|
|00000980| 13 05 00 4e 08 00 03 88 | 00 06 00 00 02 00 78 00 |...N....|......x.|
|00000990| 00 5c 00 06 00 00 02 00 | 79 00 00 5c 00 06 00 00 |.\......|y..\....|
|000009a0| 02 00 70 00 00 00 1c 05 | 06 52 00 30 20 43 61 6c |..p.....|.R.0 Cal|
|000009b0| 63 75 6c 61 74 65 20 74 | 68 65 20 72 65 61 6c 20 |culate t|he real |
|000009c0| 65 66 66 65 63 74 20 6f | 66 20 74 68 61 74 20 6d |effect o|f that m|
|000009d0| 6f 64 69 66 69 63 61 74 | 69 6f 6e 2e 00 00 17 05 |odificat|ion.....|
|000009e0| 00 06 00 00 04 00 68 61 | 6d 32 ff a2 00 4e 08 00 |......ha|m2...N..|
|000009f0| 09 e8 00 74 00 06 00 00 | 02 00 70 00 00 5c 00 06 |...t....|..p..\..|
|00000a00| 00 00 04 00 68 61 6d 32 | 00 7c 00 00 03 03 02 46 |....ham2|.|.....F|
|00000a10| 00 00 03 01 02 46 00 00 | 18 01 06 52 00 28 20 4e |.....F..|...R.( N|
|00000a20| 6f 77 20 49 20 77 61 6e | 74 20 74 6f 20 62 6c 65 |ow I wan|t to ble|
|00000a30| 6e 64 20 6f 75 74 20 74 | 68 69 73 20 68 61 6d 2d |nd out t|his ham-|
|00000a40| 70 69 63 2e 20 20 00 00 | 11 01 06 52 00 1a 20 53 |pic. ..|...R.. S|
|00000a50| 6f 20 48 61 6d 20 46 61 | 64 65 20 4f 75 74 20 69 |o Ham Fa|de Out i|
|00000a60| 73 20 75 73 65 64 2e 20 | 00 00 28 01 06 52 00 48 |s used. |..(..R.H|
|00000a70| 20 45 76 65 72 79 20 74 | 69 6d 65 20 69 74 27 73 | Every t|ime it's|
|00000a80| 20 62 65 65 6e 20 63 61 | 6c 6c 65 64 2c 20 74 68 | been ca|lled, th|
|00000a90| 65 20 73 63 72 65 65 6e | 20 67 65 74 73 20 6f 6e |e screen| gets on|
|00000aa0| 65 20 64 61 72 6b 65 72 | 2e 20 41 66 74 65 72 20 |e darker|. After |
|00000ab0| 31 36 20 63 61 6c 6c 73 | 00 00 14 01 06 52 00 20 |16 calls|.....R. |
|00000ac0| 20 74 68 65 20 73 63 72 | 65 65 6e 20 69 73 20 63 | the scr|een is c|
|00000ad0| 6f 6d 70 6c 65 74 65 6c | 79 20 62 6c 61 63 6b 2e |ompletel|y black.|
|00000ae0| 00 00 10 01 02 3c 00 00 | 00 06 00 00 02 00 61 00 |.....<..|......a.|
|00000af0| ff a2 00 3e 00 00 00 00 | 00 94 00 3e 00 00 00 0f |...>....|...>....|
|00000b00| 00 00 15 03 06 52 00 22 | 20 53 79 6e 63 68 72 6f |.....R."| Synchro|
|00000b10| 6e 69 73 65 20 77 69 74 | 68 20 74 68 65 20 72 61 |nise wit|h the ra|
|00000b20| 73 74 65 72 20 62 65 61 | 6d 2e 00 00 03 03 0c ca |ster bea|m.......|
|00000b30| 00 00 0a 03 06 52 00 0c | 20 41 6e 64 20 66 61 64 |.....R..| And fad|
|00000b40| 65 2e 2e 2e 00 00 08 03 | 00 4e 08 00 0f ba 00 3e |e.......|.N.....>|
|00000b50| 00 00 00 00 00 00 03 01 | 02 46 00 00 06 01 0a 04 |........|.F......|
|00000b60| 00 3e 00 00 00 00 00 00 | 12 01 06 52 00 1c 20 43 |.>......|...R.. C|
|00000b70| 6c 6f 73 65 20 74 68 65 | 20 73 63 72 65 65 6e 20 |lose the| screen |
|00000b80| 6e 69 63 65 6c 79 20 3a | 29 20 00 00 04 01 06 52 |nicely :|) .....R|
|00000b90| 00 00 00 00 29 01 06 52 | 00 4a 20 54 68 65 72 65 |....)..R|.J There|
|00000ba0| 20 61 72 65 20 73 6f 20 | 6d 61 6e 79 20 6f 74 68 | are so |many oth|
|00000bb0| 65 72 20 70 6f 73 73 69 | 62 69 6c 69 74 69 65 73 |er possi|bilities|
|00000bc0| 20 61 62 6f 75 74 20 77 | 68 61 74 20 79 6f 75 20 | about w|hat you |
|00000bd0| 63 61 6e 20 64 6f 20 77 | 69 74 68 20 74 68 65 20 |can do w|ith the |
|00000be0| 68 61 6d 20 00 00 28 01 | 06 52 00 48 20 63 6f 6d |ham ..(.|.R.H com|
|00000bf0| 6d 61 6e 64 73 2c 20 62 | 75 74 20 49 20 6f 6e 6c |mands, b|ut I onl|
|00000c00| 79 20 77 69 6c 6c 20 74 | 61 6b 65 20 6f 6e 65 20 |y will t|ake one |
|00000c10| 6f 75 74 3a 20 4d 69 78 | 69 6e 67 20 74 77 6f 20 |out: Mix|ing two |
|00000c20| 6e 6f 72 6d 61 6c 20 70 | 69 63 74 75 72 65 73 20 |normal p|ictures |
|00000c30| 69 6e 74 6f 00 00 0c 01 | 06 52 00 10 20 6f 6e 65 |into....|.R.. one|
|00000c40| 20 68 61 6d 20 73 63 72 | 65 65 6e 2e 00 00 14 01 | ham scr|een.....|
|00000c50| 06 52 00 20 20 4c 6f 61 | 64 20 61 20 6e 65 77 20 |.R. Loa|d a new |
|00000c60| 33 32 20 63 6f 6c 6f 75 | 72 73 20 70 69 63 74 75 |32 colou|rs pictu|
|00000c70| 72 65 2e 20 00 00 13 01 | 17 d4 00 26 00 0f 44 61 |re. ....|...&..Da|
|00000c80| 74 61 2f 57 65 61 7a 6c | 65 2e 69 66 66 00 00 5c |ta/Weazl|e.iff..\|
|00000c90| 00 3e 00 00 00 00 00 54 | 0a ae 00 00 15 01 06 52 |.>.....T|.......R|
|00000ca0| 00 22 20 47 65 74 20 74 | 68 65 20 64 69 6d 65 6e |." Get t|he dimen|
|00000cb0| 73 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 73 63 72 |sions of| the scr|
|00000cc0| 65 65 6e 2e 00 00 09 01 | 00 06 00 00 04 00 77 78 |een.....|......wx|
|00000cd0| 31 00 ff a2 0b 58 00 00 | 09 01 00 06 00 00 04 00 |1....X..|........|
|00000ce0| 77 79 31 00 ff a2 0b 74 | 00 00 1b 01 06 52 00 2e |wy1....t|.....R..|
|00000cf0| 20 4c 6f 61 64 20 74 68 | 65 20 73 65 63 6f 6e 64 | Load th|e second|
|00000d00| 20 6f 6e 65 20 61 6e 64 | 20 67 65 74 20 77 69 64 | one and| get wid|
|00000d10| 74 68 20 61 6e 64 20 68 | 65 69 67 68 74 2e 00 00 |th and h|eight...|
|00000d20| 12 01 17 d4 00 26 00 0e | 44 61 74 61 2f 42 65 61 |.....&..|Data/Bea|
|00000d30| 63 68 2e 69 66 66 00 5c | 00 3e 00 00 00 01 00 54 |ch.iff.\|.>.....T|
|00000d40| 0a ae 00 00 09 01 00 06 | 00 00 04 00 77 78 32 00 |........|....wx2.|
|00000d50| ff a2 0b 58 00 00 09 01 | 00 06 00 00 04 00 77 79 |...X....|......wy|
|00000d60| 32 00 ff a2 0b 74 00 00 | 29 01 06 52 00 4a 20 43 |2....t..|)..R.J C|
|00000d70| 61 6c 63 75 6c 61 74 65 | 20 74 68 65 20 73 69 7a |alculate| the siz|
|00000d80| 65 20 6f 66 20 74 68 65 | 20 6e 65 77 20 73 63 72 |e of the| new scr|
|00000d90| 65 65 6e 2e 20 54 68 65 | 72 65 66 6f 72 65 20 74 |een. The|refore t|
|00000da0| 68 65 20 6d 69 6e 69 6e | 75 6d 20 76 61 6c 75 65 |he minin|um value|
|00000db0| 20 6f 66 20 62 6f 74 68 | 00 00 09 01 06 52 00 0a | of both|.....R..|
|00000dc0| 20 69 73 20 74 61 6b 65 | 6e 2e 00 00 15 01 00 06 | is take|n.......|
|00000dd0| 00 00 02 00 77 78 ff a2 | 06 ea 00 74 00 06 00 00 |....wx..|...t....|
|00000de0| 04 00 77 78 31 00 00 5c | 00 06 00 00 04 00 77 78 |..wx1..\|......wx|
|00000df0| 32 00 00 7c 00 00 15 01 | 00 06 00 00 02 00 77 79 |2..|....|......wy|
|00000e00| ff a2 06 ea 00 74 00 06 | 00 00 04 00 77 79 31 00 |.....t..|....wy1.|
|00000e10| 00 5c 00 06 00 00 04 00 | 77 79 32 00 00 7c 00 00 |.\......|wy2..|..|
|00000e20| 1f 01 06 52 00 36 20 4e | 6f 77 20 6f 70 65 6e 20 |...R.6 N|ow open |
|00000e30| 74 68 65 20 74 68 69 72 | 64 20 73 63 72 65 65 6e |the thir|d screen|
|00000e40| 2e 20 4e 6f 74 65 20 74 | 68 61 74 20 74 68 69 73 |. Note t|hat this|
|00000e50| 20 6f 6e 65 20 69 73 20 | 48 41 4d 2e 00 00 16 01 | one is |HAM.....|
|00000e60| 09 ea 00 3e 00 00 00 02 | 00 5c 00 06 00 00 02 00 |...>....|.\......|
|00000e70| 77 78 00 5c 00 06 00 00 | 02 00 77 79 00 5c 00 3e |wx.\....|..wy.\.>|
|00000e80| 00 00 10 00 00 5c 0c 90 | 00 00 14 01 14 46 00 54 |.....\..|.....F.T|
|00000e90| 0d 34 00 54 13 dc 00 3e | 00 00 00 00 00 54 13 d2 |.4.T...>|.....T..|
|00000ea0| 00 3e 00 00 00 01 00 54 | 0b ae 00 3e 00 00 00 00 |.>.....T|...>....|
|00000eb0| 00 00 28 01 06 52 00 48 | 20 54 68 65 6e 20 74 68 |..(..R.H| Then th|
|00000ec0| 65 20 70 61 6c 65 74 74 | 65 73 20 73 68 6f 75 6c |e palett|es shoul|
|00000ed0| 64 20 62 65 20 6d 69 78 | 65 64 20 74 6f 20 67 65 |d be mix|ed to ge|
|00000ee0| 74 20 62 65 74 74 65 72 | 20 72 65 73 75 6c 74 73 |t better| results|
|00000ef0| 2c 20 62 75 74 20 69 74 | 20 69 73 20 4e 4f 54 20 |, but it| is NOT |
|00000f00| 00 00 0e 01 06 52 00 14 | 20 6e 65 63 63 65 73 73 |.....R..| neccess|
|00000f10| 61 72 79 20 61 74 20 61 | 6c 6c 21 20 00 00 1b 01 |ary at a|ll! ....|
|00000f20| 06 52 00 2e 20 46 69 72 | 73 74 20 49 20 63 6f 70 |.R.. Fir|st I cop|
|00000f30| 79 20 74 68 65 20 77 68 | 6f 6c 65 20 70 61 6c 65 |y the wh|ole pale|
|00000f40| 74 74 65 20 66 72 6f 6d | 20 73 63 72 65 65 6e 20 |tte from| screen |
|00000f50| 30 2e 00 00 06 01 0b 90 | 00 3e 00 00 00 00 00 00 |0.......|.>......|
|00000f60| 28 01 06 52 00 48 20 49 | 6e 20 61 20 6c 6f 6f 70 |(..R.H I|n a loop|
|00000f70| 20 49 20 74 61 6b 65 20 | 65 61 63 68 20 63 6f 6c | I take |each col|
|00000f80| 6f 75 72 20 61 6e 64 20 | 6d 69 78 20 69 74 20 75 |our and |mix it u|
|00000f90| 73 69 6e 67 20 74 68 65 | 20 4d 69 78 20 43 6f 6c |sing the| Mix Col|
|00000fa0| 6f 75 72 20 66 75 6e 63 | 74 69 6f 6e 2e 20 00 00 |our func|tion. ..|
|00000fb0| 10 01 02 3c 00 00 00 06 | 00 00 02 00 61 00 ff a2 |...<....|....a...|
|00000fc0| 00 3e 00 00 00 00 00 94 | 00 3e 00 00 00 1f 00 00 |.>......|.>......|
|00000fd0| 06 03 0c 6e 00 3e 00 00 | 00 01 00 00 0e 03 00 06 |...n.>..|........|
|00000fe0| 00 00 02 00 63 31 ff a2 | 0d 1c 00 74 00 06 00 00 |....c1..|...t....|
|00000ff0| 02 00 61 00 00 7c 00 00 | 06 03 0c 6e 00 3e 00 00 |..a..|..|...n.>..|
|00001000| 00 02 00 00 0e 03 00 06 | 00 00 02 00 63 32 ff a2 |........|....c2..|
|00001010| 0d 1c 00 74 00 06 00 00 | 02 00 61 00 00 7c 00 00 |...t....|..a..|..|
|00001020| 16 03 0d 1c 00 06 00 00 | 02 00 61 00 00 5c 00 4e |........|..a..\.N|
|00001030| 08 00 0e e8 00 74 00 06 | 00 00 02 00 63 31 00 5c |.....t..|....c1.\|
|00001040| 00 06 00 00 02 00 63 32 | 00 7c 00 00 03 01 02 46 |......c2|.|.....F|
|00001050| 00 00 24 01 06 52 00 40 | 20 4e 6f 77 20 63 6f 6d |..$..R.@| Now com|
|00001060| 65 73 20 74 68 65 20 6d | 61 69 6e 20 70 61 72 74 |es the m|ain part|
|00001070| 2e 20 49 74 27 73 20 71 | 75 69 74 65 20 73 69 6d |. It's q|uite sim|
|00001080| 69 6c 61 72 20 74 6f 20 | 74 68 65 20 75 70 70 65 |ilar to |the uppe|
|00001090| 72 20 70 61 72 74 2e 20 | 00 00 15 01 02 3c 00 00 |r part. |.....<..|
|000010a0| 00 06 00 00 02 00 79 00 | ff a2 00 3e 00 00 00 00 |......y.|...>....|
|000010b0| 00 94 00 06 00 00 02 00 | 77 79 ff ca 00 3e 00 00 |........|wy...>..|
|000010c0| 00 01 00 00 27 03 06 52 | 00 46 20 41 74 20 74 68 |....'..R|.F At th|
|000010d0| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 61 |e beginn|ing of a|
|000010e0| 20 6c 69 6e 65 2c 20 73 | 65 74 20 74 68 65 20 6f | line, s|et the o|
|000010f0| 6c 64 20 63 6f 6c 6f 75 | 72 20 74 6f 20 74 68 65 |ld colou|r to the|
|00001100| 20 62 6f 72 64 65 72 20 | 63 6f 6c 6f 75 72 2c 20 | border |colour, |
|00001110| 00 00 0e 03 06 52 00 14 | 20 74 68 61 74 20 69 73 |.....R..| that is|
|00001120| 20 43 6f 6c 6f 75 72 28 | 30 29 2e 20 00 00 0e 03 | Colour(|0). ....|
|00001130| 00 06 00 00 04 00 68 61 | 6d 00 ff a2 0d 1c 00 74 |......ha|m......t|
|00001140| 00 3e 00 00 00 00 00 7c | 00 00 15 03 02 3c 00 00 |.>.....||.....<..|
|00001150| 00 06 00 00 02 00 78 00 | ff a2 00 3e 00 00 00 00 |......x.|...>....|
|00001160| 00 94 00 06 00 00 02 00 | 77 78 ff ca 00 3e 00 00 |........|wx...>..|
|00001170| 00 01 00 00 12 05 06 52 | 00 1c 20 47 65 74 20 70 |.......R|.. Get p|
|00001180| 69 78 65 6c 20 78 2c 79 | 20 6f 66 20 73 63 72 65 |ixel x,y| of scre|
|00001190| 65 6e 20 30 2e 20 00 00 | 06 05 0c 6e 00 3e 00 00 |en 0. ..|...n.>..|
|000011a0| 00 00 00 00 15 05 00 06 | 00 00 02 00 70 31 ff a2 |........|....p1..|
|000011b0| 00 4e 08 00 03 9e 00 74 | 00 06 00 00 02 00 78 00 |.N.....t|......x.|
|000011c0| 00 5c 00 06 00 00 02 00 | 79 00 00 7c 00 00 11 05 |.\......|y..|....|
|000011d0| 06 52 00 1a 20 47 65 74 | 20 74 68 65 20 63 6f 6d |.R.. Get| the com|
|000011e0| 70 6f 73 69 74 65 20 63 | 6f 6c 6f 75 72 2e 00 00 |posite c|olour...|
|000011f0| 0e 05 00 06 00 00 02 00 | 63 31 ff a2 0d 1c 00 74 |........|c1.....t|
|00001200| 00 06 00 00 02 00 70 31 | 00 7c 00 00 1d 05 06 52 |......p1|.|.....R|
|00001210| 00 32 20 47 65 74 20 70 | 69 78 65 6c 20 78 2c 79 |.2 Get p|ixel x,y|
|00001220| 20 6f 66 20 73 63 72 65 | 65 6e 20 31 20 61 6e 64 | of scre|en 1 and|
|00001230| 20 63 6f 6d 70 6f 73 69 | 74 65 20 63 6f 6c 6f 75 | composi|te colou|
|00001240| 72 2e 20 20 00 00 06 05 | 0c 6e 00 3e 00 00 00 01 |r. ....|.n.>....|
|00001250| 00 00 15 05 00 06 00 00 | 02 00 70 32 ff a2 00 4e |........|..p2...N|
|00001260| 08 00 03 9e 00 74 00 06 | 00 00 02 00 78 00 00 5c |.....t..|....x..\|
|00001270| 00 06 00 00 02 00 79 00 | 00 7c 00 00 0e 05 00 06 |......y.|.|......|
|00001280| 00 00 02 00 63 32 ff a2 | 0d 1c 00 74 00 06 00 00 |....c2..|...t....|
|00001290| 02 00 70 32 00 7c 00 00 | 0e 05 06 52 00 14 20 4d |..p2.|..|...R.. M|
|000012a0| 69 78 20 74 68 65 73 65 | 20 63 6f 6c 6f 75 72 73 |ix these| colours|
|000012b0| 2e 20 00 00 16 05 00 06 | 00 00 04 00 6e 65 77 00 |. ......|....new.|
|000012c0| ff a2 00 4e 08 00 0e e8 | 00 74 00 06 00 00 02 00 |...N....|.t......|
|000012d0| 63 31 00 5c 00 06 00 00 | 02 00 63 32 00 7c 00 00 |c1.\....|..c2.|..|
|000012e0| 28 05 06 52 00 48 20 44 | 6f 6e 27 74 20 66 6f 72 |(..R.H D|on't for|
|000012f0| 67 65 74 20 74 6f 20 63 | 68 61 6e 67 65 20 74 6f |get to c|hange to|
|00001300| 20 74 68 65 20 68 61 6d | 20 73 63 72 65 65 6e 2c | the ham| screen,|
|00001310| 20 61 73 20 48 61 6d 20 | 42 65 73 74 20 67 65 74 | as Ham |Best get|
|00001320| 73 20 74 68 65 20 70 61 | 6c 65 74 74 65 20 00 00 |s the pa|lette ..|
|00001330| 21 05 06 52 00 3a 20 66 | 72 6f 6d 20 74 68 65 20 |!..R.: f|rom the |
|00001340| 63 75 72 72 65 6e 74 20 | 73 63 72 65 65 6e 2c 20 |current |screen, |
|00001350| 61 6e 64 20 74 68 61 74 | 20 6d 75 73 74 20 62 65 |and that| must be|
|00001360| 20 74 68 65 20 68 61 6d | 20 73 63 72 65 65 6e 2e | the ham| screen.|
|00001370| 00 00 06 05 0c 6e 00 3e | 00 00 00 02 00 00 28 05 |.....n.>|......(.|
|00001380| 06 52 00 48 20 4e 6f 77 | 20 63 61 6c 63 75 6c 61 |.R.H Now| calcula|
|00001390| 74 65 20 74 68 65 20 62 | 65 73 74 20 68 61 6d 20 |te the b|est ham |
|000013a0| 63 6f 6c 6f 75 72 2e 20 | 41 73 20 61 6c 77 61 79 |colour. |As alway|
|000013b0| 73 2c 20 77 65 20 6e 65 | 65 64 20 74 68 65 20 63 |s, we ne|ed the c|
|000013c0| 6f 6c 6f 75 72 20 6f 66 | 20 74 68 65 00 00 0c 05 |olour of| the....|
|000013d0| 06 52 00 10 20 70 72 65 | 76 69 6f 75 73 20 70 69 |.R.. pre|vious pi|
|000013e0| 78 65 6c 2e 00 00 17 05 | 00 06 00 00 02 00 70 00 |xel.....|......p.|
|000013f0| ff a2 00 4e 08 00 09 fc | 00 74 00 06 00 00 04 00 |...N....|.t......|
|00001400| 6e 65 77 00 00 5c 00 06 | 00 00 04 00 68 61 6d 00 |new..\..|....ham.|
|00001410| 00 7c 00 00 15 05 06 52 | 00 22 20 57 72 69 74 65 |.|.....R|." Write|
|00001420| 20 74 68 65 20 6e 65 77 | 20 70 69 78 65 6c 20 74 | the new| pixel t|
|00001430| 6f 20 74 68 65 20 73 63 | 72 65 65 6e 00 00 13 05 |o the sc|reen....|
|00001440| 00 4e 08 00 03 88 00 06 | 00 00 02 00 78 00 00 5c |.N......|....x..\|
|00001450| 00 06 00 00 02 00 79 00 | 00 5c 00 06 00 00 02 00 |......y.|.\......|
|00001460| 70 00 00 00 1c 05 06 52 | 00 30 20 41 6e 64 20 61 |p......R|.0 And a|
|00001470| 74 20 6c 61 73 74 2c 20 | 63 61 6c 63 75 6c 61 74 |t last, |calculat|
|00001480| 65 20 74 68 65 20 72 65 | 61 6c 20 63 6f 6c 6f 75 |e the re|al colou|
|00001490| 72 20 63 68 61 6e 67 65 | 2e 20 00 00 17 05 00 06 |r change|. ......|
|000014a0| 00 00 04 00 68 61 6d 00 | ff a2 00 4e 08 00 09 e8 |....ham.|...N....|
|000014b0| 00 74 00 06 00 00 02 00 | 70 00 00 5c 00 06 00 00 |.t......|p..\....|
|000014c0| 04 00 68 61 6d 00 00 7c | 00 00 03 03 02 46 00 00 |..ham..||.....F..|
|000014d0| 03 01 02 46 00 00 03 01 | 03 b6 00 00 41 6d 42 73 |...F....|....AmBs|
|000014e0| 00 00 | |.. | |
+--------+-------------------------+-------------------------+--------+--------+